<?php
namespace app\common\validate\Product\order;

use think\Validate;

// 订单
class Order extends Validate
{
    protected $rule =   [
        'busid' => ['require'],
        'businessaddrid' => ['require'],
        'amount' => ['require'],
        'code' => ['require'],
        'status' => ['require']
    ];

    protected $message  =   [
        'busid.require' => '用户未知',
        'businessaddrid.require' => '收货地址未知',
        'amount.require' => '订单金额未知',
        'code.require' => '订单号未知',
        'status.require' => '订单状态未知'
    ];

    /**
     * 设置验证器的场景
     */
    protected $scene = [
        
    ];
}